package com.zhaokuner.parentstarter.handler;

import org.springframework.ui.ModelMap;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.context.request.WebRequestInterceptor;

/**
 * <p>
 * Description:获取请求中的数据
 * <p>
 * Copyright: 天津联想协同科技有限公司
 * <p>
 *
 * @author 赵希坤 zhaoxikun
 * @date 2021/2/14 19:47
 */
public class HttpReqInfoWebRequestInterceptor implements WebRequestInterceptor {
    @Override
    public void preHandle(WebRequest request) throws Exception {
        //初始化数据

    }

    @Override
    public void postHandle(WebRequest request, ModelMap model) throws Exception {
        //请求完成后清楚缓存

    }

    @Override
    public void afterCompletion(WebRequest request, Exception ex) throws Exception {

    }
}
